home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sound Fx
/
Sound Fx.iso
/
Software
/
UNZIPED
/
CWPA45D
/
CH_MAJOR.CA_
/
CH_MAJOR.bin
Wrap
Text File
|
1996-05-20
|
534b
|
24 lines
;; Ch_major.cal
;;
;; Treats each note as the root of a major chord, and creates that chord:
;; For each note event, adds two note events with same time, vel, and dur
;; but a major third and a perfect fifth higher.
;;
(do
(include "need20.cal") ; Require version 2.0 or higher of CAL
(forEachEvent
(if (== Event.Kind NOTE)
(do
(insert Event.Time Event.Chan NOTE (+ Note.Key 4) Note.Vel Note.Dur)
(insert Event.Time Event.Chan NOTE (+ Note.Key 7) Note.Vel Note.Dur)
)
)
)
)